package com.baizhi.feign.rollback;

import com.baizhi.feign.FeignGroup;
import com.baizhi.po.GroupsPO;
import org.springframework.stereotype.Component;

@Component
public class GroupFallBack implements FeignGroup {
    @Override
    public GroupsPO queryById(Long id) {
        GroupsPO groupsPO = new GroupsPO();
        groupsPO.setId(id);
        groupsPO.setName("服务不可用");
        return groupsPO;
    }
}
